#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include "dnsconf.h"

int main(int argc, char *argv[]) {
	char opt;
	bool status = false;

	if(argc < 2) {
		fprintf(stderr, "Usage: %s [-sh] <value> <config file>\n", argv[0]);
		return 1;
	}
	opt = argv[1][1];
	switch(opt) {
		case 'h' : help(); break;
		case 's' : status = serial_update(argv[3], argv[2]); break;
		default : help();
	}
	return 0;
}
